home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK1.toast / Development Kits (Disc 1) / QuickTime / Programming Stuff / QuickTime 2.1 for Developers / Sprite Sample Code / Read Me - Sprite Stuff < prev    next >
Encoding:
Text File  |  1995-07-19  |  2.3 KB  |  64 lines  |  [TEXT/MMCC]

  1. Sprite Sample Code        - Sean Allen
  2.  
  3. The sprite sample code consists of three examples which show
  4. how the sprite toolbox may be used to do sprite animation, 
  5. how to create a QuickTime Movie containing a Sprite Track, and how
  6. to add a reference track a movie which is used to override sprite image
  7. data. Also useful is code which recompresses PICT images as animation
  8. compressor sequences.
  9.  
  10. A resource file is included which contains the PICT's neccessary to create
  11. the sample movies and animations. 
  12.  
  13. The space ship and background images were created by Mark Allen using
  14. Form Z to create the models, and Electric Image to render them.
  15.  
  16. /*
  17.     SpriteToolBoxSampleCode.c
  18.  
  19.     This sample code shows how the sprite toolbox may be used by an
  20.     application to create a simple sprite animation (one which is
  21.     not contained in a QuickTime movie ).
  22.     
  23. */
  24.  
  25. /*
  26.     MakeSpriteMovie.c
  27.  
  28.     This sample code shows how to create a QuickTime Sprite Track
  29.     The example creates a 640 x 480 movie with one sprite track. The
  30.     sprite track contains a static background picture sprite, or just
  31.     a color background depending on the boolean passed into AddSpriteTrackToMovie, 
  32.     and three other sprites which change their properties over time.
  33.     The track's media contains only one key frame sample followed by 
  34.     many override samples. The key frame contains all of the images
  35.     used by the sprites, the override frames only contain the
  36.     overrides of the locations, image indecies, and layers needed for the other
  37.     sprites. 
  38.     
  39.     Since each override frame is small the performance of the movie
  40.     can be improved by flattening it. (save as self contained from
  41.     Movie Player).
  42.     
  43.     This sample code also shows how any PICT can be recompressed with the
  44.     animation compressor using a key color to obtain transparency.
  45. */
  46.  
  47. /* 
  48.     AddReferenceTrack.c
  49.     
  50.     This sample code shows how a movie can be modified to use a reference track
  51.     as the image data for an image index in a sprite track.
  52.     
  53.     It prompts for a movie which should contain a single sprite track, and then
  54.     add's a movie named "Add Me" as a reference track. The reference track
  55.     will override the image data for a selected image index.
  56.     
  57.     You may use the movie created with the MakeSpriteMovie sample code. The 
  58.     globe image index will be replaces by the "Add Me" movie.
  59.     
  60.     Note that the movie with the sprite track is permanently modified, so use
  61.     a copy if you want to retain the original.
  62. */
  63.  
  64.